<script>
	export default {
		onLaunch: function() {
			uni.setStorageSync('token','fc19d2bc-8a51-476b-bc80-c25c744d6838')
		},
		onShow: function() {
			// if(!uni.getStorageSync('token')){
			// 	this.api._login();
			// }
			if(location.href.indexOf('detail') != -1 || location.href.indexOf('bind') != -1){
				uni.setStorageSync('href',location.href);
			}
		},
		onHide: function() {
			
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	page{
		background-color: #F8F8F8;
	}
	.head{
		width: 100%;
		height: 450rpx;
		image{
			width: 100%;
			height: 100%;
		}
	}
</style>
